xen/arm: acpi: The boot CPU does not always match the first entry in the MADT
authorJulien Grall <julien.grall@arm.com>
Mon, 11 Apr 2016 13:33:34 +0000 (14:33 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 11 Apr 2016 14:07:38 +0000 (10:07 -0400)
commit62b70bedca3d6b0f8c53a459e53a5de19b9a1041
treec0e2850142482d11a5432a44ed1348599c0577e1
parent3dac42fef86a79be209e585ae323fccb240bfc2e
xen/arm: acpi: The boot CPU does not always match the first entry in the MADT

Since the ACPI 6.0 errata document [1], the first entry in the MADT
does not have to correspond to the boot CPU.

Introduce a new variable to know if a MADT entry matching the boot CPU
is found. Furthermore, it's not necessary to check if the MPIDR is
duplicated for the boot CPU. So the rest of the function can be skipped.

[1] 1380 Unnecessary restrictions to FW vendors in ordering of GIC structures
in MADT

Signed-off-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/acpi/boot.c